<?php
 
$proxiedurl = isset($_REQUEST["proxiedurl"]) ? $_REQUEST["proxiedurl"] : '';
 
if( $proxiedurl == "" )
{
	exit;
}

	$ch = curl_init($proxiedurl);
	
	curl_setopt($ch, CURLOPT_HEADER, 0);
	curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
	curl_setopt($ch, CURLOPT_BINARYTRANSFER,1);
	curl_setopt ($ch, CURLOPT_FOLLOWLOCATION, 1); 
	curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.2a) Gecko/20021021");
	curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
	curl_setopt($ch, CURLOPT_TIMEOUT, 60);

	$ret = curl_exec($ch);
	$errno = @curl_errno($ch);
	$error = @curl_error($ch);
	curl_close($ch);

echo $ret;
 
?>
